<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<script type="text/javascript">
	$(document).ready(function() {

		var actionpage = document.URL.split("/")[4];
		
		x=1;
		switch (actionpage)
		{
		case "callmanagement":
		  x=1;
		  break;
		case "personalcallmanagement":
		  x=1;
		  break;
		case "calllist":
		  x=2;
		  break;
		case "interviewhistory":
		  x=3;
		  break;
		case "monshinsystem":
		  x=4;
		  break;
		case "staffmaintain":
		  x=5;
		  break;
		case "usermaintain":
		  x=6;
		  break;
		}
		$('#navmenu li:nth-child('+x+')').addClass("active");
		
	
	});	
</script>

<div class="container">
	<div class="row">
		<div class="col-md-11" style="padding-left: 0px; padding-right: 0px; width:95%">
	  		<s:url var="callManagementUrl" action="main.html" namespace="/callmanagement" />
	    	<a class="navbar-brand" href="<s:property value="%{#callManagementUrl}"/>"></a>      
	       <ul class="menu" id="navmenu">	       
	         <li>         	
		    	<s:a href="%{#callManagementUrl}">
		    		<s:text name="global.nav.callmanagement" /><strong></strong>
		    	</s:a>
	         </li>
	         <li>
	         	<s:url var="callListUrl" action="main.html" namespace="/calllist" />
		    	<s:a id='callListInHeader' href="%{#callListUrl}">
		    		<s:text name="global.nav.calllist" /><strong></strong>
		    	</s:a>
	         </li>
			 <li>
	         	<s:url var="interviewHistoryUrl" action="main.html" namespace="/interviewhistory" />
		    	<s:a href="%{#interviewHistoryUrl}">
		    		<s:text name="global.nav.interviewhistory" /><strong></strong>
		    	</s:a>
	         </li>	         
	         <li>
	         	<s:url var="monshinSystemUrl" action="main.html" namespace="/monshinsystem" />
		    	<s:a href="%{#monshinSystemUrl}">
		    		<s:text name="global.nav.monshinsystem" /><strong></strong>
		    	</s:a>
	         </li>	         
	         <li>
	         	<s:url var="staffMaintainUrl" action="main.html" namespace="/staffmaintain" />
		    	<s:a href="%{#staffMaintainUrl}">
		    		<s:text name="global.nav.staffmaintain" /><strong></strong>
		    	</s:a>
	         </li>	         
	         <li>
	         	<s:url var="userMaintainUrl" action="main.html" namespace="/usermaintain" />
		    	<s:a href="%{#userMaintainUrl}">
		    		<s:text name="global.nav.usermaintain" /><strong></strong>
		    	</s:a>
	         </li>	         
	       </ul>	       
		</div>
		<div class="col-md-1" style="padding-top: 18px; margin-top: 5px; padding-left: 0px; width:5%">
			<s:url var="signOutUrl" action="signout.html" namespace="/signin" />
			<a class="logoutbutton" href="<s:property value="%{#signOutUrl}"/>"></a>
		</div>
	</div>
</div>